This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 7, 2014, 6:49 AM
18 Posts

Create Doclink on Uidoc

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: Doclink,UIdoc
  • Replies: 1

I am trying to write a script to create a doclink to an external document who's link (C:\temp\test.doc say) in pasted to the clipboard.

I have no trouble obtaining the link. I am however having trouble creating the doclink from thin the uidoc to which it is to be created on.

Has anyone been able to achieve this? Any ideas?

Jun 7, 2014, 10:27 AM
107 Posts
If the document is open in Edit mode...
...you could use NotesUIDocument.Paste() to insert the clipboard content at the current cursor position. Before that you might have to put the cursor on the RichText field, using methods NotesUIDocument.GotoField(), GotoTop() or GotoBottom(). You cannot, however, navigate programmatically to a specific insertion point within the RT field, as long as you are operating in the front-end.

A different approach would be to use back-end classes and operations. You could then control where exactly you want the link inserted into the RT field using the NotesRichtextNavigator class. On the other hand, that would mean you don't have access to the clipboard. You'd have to create the .lnk file somehow and then attach that file using NotesRichtextItem.EmbedObject(). Note also that it is generally difficult to mix front-end and back-end operations on a document. That is, if you decide to take the back-end approach, it's best to close the document, then manipulate the RT field in the back-end, then reopen the document if necessary.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal